<?php

namespace app\ntice\model;

use think\Db;
use think\Model;

class NticeqkModel extends Model
{

    // 设置数据表（不含前缀）
    protected $name = 'ntice_qk';
    // 设置当前模型对应的完整数据表名称
    protected $table = 'ld_ntice_qk';

    public function __construct($data = [])
    {
        parent::__construct($data);
    }


    /**
     * @param $where
     * @param 获取数据
     */
    public function datalist($where){
        $query = Db::name('ntice_qk')->where($where)->field('id,title,Bulletin,enable')->select();
        return $query;
    }

}